Name :Heartbeat falling edge
Symbol:F_TRIG
Illustrate:
Using the Heartbeat Falling Edge command, you can detect the change in state from "1" to "0" in the input CLK. This directive compares the current value of the input CLK with the state of the last query (edge storage bit) saved in the specified instance. If the command detects that the state of the input CLK has changed from "1" to "0", it will generate a falling edge of the signal in the output Q, and the output value will be TRUE or "1" for one cycle.
In all other cases, the signal status of the command output is "0".
Image:
Parameter:
| Parameter | Statement | Type | Description |
|---|---|---|---|
| CLK | Input | BOOL | When a signal is reached, the edge of that signal will be queried |
| Q | Output | BOOL | The result of edge detection |
Example:
LD:
ST:
Interpretation:
If the signal status of the operand "TagIn1" is detected to change from "1" to "0", the signal status of the output "TagOut" is "1" for one cycle.